# while打印四种格式的九九乘法表
print("第一种")
index_one=1
while(index_one<10):
    index_two=1
    while(index_two<=index_one):
        print(index_one,"x",index_two,"=",index_two*index_one, end='  ')
        index_two=index_two+1
    index_one=index_one+1
    print("")

print("第二种")
index_three=1
while(index_three<=9):
    index_four=index_three
    while(index_four<=9):
        print(index_three,"x",index_four,"=",index_three*index_four,end='  ')
        index_four=index_four+1
    index_three=index_three+1
    print("")